#pragma once
#include "cocos2d.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "../common/Common.h"
USING_NS_CC;

class MainUIExpProgress : public cocos2d::Node
{
public:
	MainUIExpProgress();
	~MainUIExpProgress();
public:
	static cocos2d::Node* createNode();
	virtual bool init();
	CREATE_FUNC(MainUIExpProgress);
public:
	bool TouchDown(Touch* touch);
	void TouchMove(Touch* touch);
	void SetAutoAttackIcon(bool g_AutoAttackMonster);
	bool TouchUp(Touch* touch);
	void RefreshData();
public:
	cocos2d::ui::LoadingBar* m_expBar;
	cocos2d::ui::LoadingBar* m_hpBar;
	cocos2d::ui::LoadingBar* m_mpBar;
	cocos2d::ui::Text* m_nameText;
	cocos2d::ui::Text* m_levelText;
	cocos2d::ui::Text* m_HP_Text;
	cocos2d::ui::Text* m_MP_Text;

	Sprite* m_attackBottom;
	Sprite* m_choosePeople;
	Sprite* m_chooseMonster;

	Sprite* m_headIcon;
	Node* m_selectedNode;
	Sprite* m_bang;
	Sprite* m_quit;
	Sprite* m_autoAttack;
	Sprite* m_shuxia;
	Sprite* m_layout;

};
